#ifndef MYCAMERA_H
#define MYCAMERA_H

#include <QObject>

class mycamera : public QObject
{
    Q_OBJECT
public:
    explicit mycamera(QObject *parent = nullptr);
    //摄像头的初始化
    int camera_init();
    //摄像头捕捉显示画面
    int camera_capture();
    //关闭摄像头
    int camera_uninit();
signals:

private:
    int lcdfd;
    int *lcdmem;
    int camerafd;
    //分配缓冲块顺便映射得到4个缓冲块的首地址
//    struct v4l2_buffer otherbuf;
//    //定义结构体数组存放4个缓冲块的首地址和大小
//    struct bufmsg array[4];
//    enum v4l2_buf_type mytype;
};

#endif // MYCAMERA_H
